<%= error_messages_for 'group' %>

<!--[form:group]-->
<p><label for="group_user_id">Prowadzacy</label><br/>
<%=  select("group", "user_id", User.find(:all, :conditions => "role = 'prowadzacy'").collect {|p| [ "#{p.mark.name} #{p.surname} #{p.name}  ", p.id ] },{}, {:disabled => false}) %></p>
<!-- disabled set to false -->

<p><label for="group_lesson_id">Zajecia</label><br/>
<%=  select("group", "lesson_id", LessonsUser.find(:all ).collect {|p| [ "#{p.lesson.subject.name} - #{p.lesson.class_type.name} - (#{p.lesson.subject.major.name}:#{p.lesson.subject.year} #{p.lesson.semestr})",  p.id ] },  {:include_blank => true}) %></p>

<p><label for="group_day">Dzien</label><br/>
<%= text_field 'group', 'day'  %></p>

<p><label for="group_period">Godzina</label><br/>
<%= text_field 'group', 'period'  %></p>

<p><label for="group_classroom">Sala</label><br/>
<%= text_field 'group', 'classroom'  %></p>

<p><label for="group_notes">Notatki</label><br/>
<%= text_area 'group', 'notes'  %></p>
<!--[eoform:group]-->

